package com.xinqi.modules.user.user.dto.req.v2;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 更换手机号
 *
 * @version V1.0
 * @Title:
 * @ClassName: com.xinqi.modules.ue.domain.dto.UpdatePhoneDto.java
 * @Description:
 * @Copyright 星齐科技（云南）有限公司 - Powered By 技术部
 * @author: yyzhen
 * @date: 2023/3/7 17:21
 */
@Data
public class UpdatePhoneV2Dto {
    /**
     * 手机号码
     */
    @NotEmpty(message = "{user.phonenumber.not.blank}")
    @Pattern(regexp = "^1\\d{10}$", message = "{user.mobile.phone.number.not.valid}")
    private String mobile;

    @NotEmpty(message = "{user.password.not.blank}")
    private String password;

    /**
     * 验证码
     */
    @NotEmpty(message = "{sms.code.not.blank}")
    private String smsCode;

    @Schema(title = "用户ID(内部流转参数，不对外)", hidden = true)
    private Long userId;

}
